import { createRouter, createWebHistory } from 'vue-router'
import Home from '../views/Home.vue'
import PbfOpenLayer from '../components/map/PbfOpenlayer.vue' // 假设你已经将之前转换的组件放在此处
import CesiumViewer from '../components/cesium/CesiumViewer.vue'
import test from '../components/test.vue'

const routes = [
  {
    path: '/',
    name: 'Home',
    component: Home
  },
  {
    path: '/map',
    name: 'Map',
    component: PbfOpenLayer
  },
    {
    path: '/cesium',
    name: 'CesiumViewer',
    component: CesiumViewer
  },
    {
    path: '/test',
    name: 'test',
    component: test
  }

]

const router = createRouter({
  history: createWebHistory(),
  routes
})

export default router